package com.kang.c0c.tree.node;


/**
 * 抽象语法树的子节点，定义了抽象语法树中的读操作
 * LeafNode为需要读入的变量标识符叶节点 
 * scanf		:SCAN	读入
 * 
 * @author kang
 *
 * Feb 6, 2009
 */
public class ScanNode extends Node implements Nodes{
	private LeafNode varIdent;
	
	public ScanNode(){
		this(null);
	}
	
	public ScanNode(LeafNode varIdent){
		super(SCAN);
		this.varIdent = varIdent;
	}

	public LeafNode getVarIdent() {
		return varIdent;
	}

	public void setVarIdent(LeafNode varIdent) {
		this.varIdent = varIdent;
	}

}
